package nc.bs.mlr.impl.pub;

import java.util.ArrayList;
import java.util.HashMap;
import nc.bs.dao.BaseDAO;
import nc.bs.dao.DAOException;
import nc.vo.itf.mlr.pub.IMLRItf;
import nc.vo.mlr.m400650.BatchcodePriceVO;
import nc.vo.pub.AggregatedValueObject;
import nc.vo.pub.BusinessException;
import nc.vo.pub.lang.UFDate;

public class MLRimpl implements IMLRItf {

	public void UpdateBasePrice(ArrayList<HashMap<String, String>> al)
			throws DAOException {
		nc.bs.mlr.m400650.ServerDAO dao = new nc.bs.mlr.m400650.ServerDAO();
		dao.UpdateBasePrice(al);

	}

	public void UpdateConsultPrice(ArrayList<HashMap<String, String>> al)
			throws DAOException {
		nc.bs.mlr.m400650.ServerDAO dao = new nc.bs.mlr.m400650.ServerDAO();
		dao.UpdateConsultPrice(al);

	}

	public void UpdateSellPrice(ArrayList<HashMap<String, String>> al)
			throws DAOException {
		nc.bs.mlr.m400650.ServerDAO dao = new nc.bs.mlr.m400650.ServerDAO();
		dao.UpdateSellPrice(al);

	}

	public void updateXSYT(ArrayList<HashMap<String, String>> al)
			throws DAOException {
		nc.bs.mlr.m400650.ServerDAO dao = new nc.bs.mlr.m400650.ServerDAO();
		dao.updateXSYT(al);

	}

	public void LockOpera(HashMap hm) throws BusinessException {
		nc.bs.mlr.m400650.ServerDAO dao = new nc.bs.mlr.m400650.ServerDAO();
		dao.LockOpera(hm);

	}

	public void UpdateSql(String sql) throws BusinessException {
		// TODO Auto-generated method stub
		BaseDAO baseDAO = new BaseDAO();
		baseDAO.executeUpdate(sql);
	}

	public void UnlockFreezid(AggregatedValueObject avo, String userid,
			UFDate date) throws BusinessException {
		// TODO Auto-generated method stub
		nc.bs.mlr.m400641.ServerDAO2 dao = new nc.bs.mlr.m400641.ServerDAO2();
		dao.UnlockFreezid(avo, userid, date);
	}

	public void LockFreezid(AggregatedValueObject avo, String userid,
			UFDate date) throws BusinessException {
		// TODO Auto-generated method stub
		nc.bs.mlr.m400641.ServerDAO2 dao = new nc.bs.mlr.m400641.ServerDAO2();
		dao.LockFreezid(avo, userid, date);
	}

	public HashMap buildNewDoc(HashMap mp) throws BusinessException {
		// TODO Auto-generated method stub
		nc.bs.mlr.mZ4.ServerDAO dao = new nc.bs.mlr.mZ4.ServerDAO();
		HashMap hm = dao.buildNesDoc(mp);
		return hm;
	}

	public ArrayList reportData(HashMap hm) throws BusinessException {
		// TODO Auto-generated method stub
		nc.bs.mlr.m404099.ServerDAO dao = new nc.bs.mlr.m404099.ServerDAO();
		ArrayList al = dao.reportData(hm);
		return al;
	}

	public ArrayList reportDataCG(HashMap hm) throws BusinessException {
		// TODO Auto-generated method stub
		nc.bs.mlr.m404098.ServerDAO dao = new nc.bs.mlr.m404098.ServerDAO();
		ArrayList al = dao.reportDataCG(hm);
		return al;
	}

	public ArrayList reportDataCGHZ(HashMap hm) throws BusinessException {
		// TODO Auto-generated method stub
		nc.bs.mlr.m404097.ServerDAO dao = new nc.bs.mlr.m404097.ServerDAO();
		ArrayList al = dao.reportDataCGHZ(hm);
		return al;
	}
}
